package com.iplant.ams.service.po.ams.asset;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.utils.annotation.po.DBBasePO;
import com.iplant.base.utils.annotation.field.DBField;

import java.io.Serializable;

/**
 * 资产入库单
 */
@DBBasePO(TableName = "ams_asset_storage", CheckName = {"Code"}, CodeAuto = true, CodePrefix = "STRG_{yyyyMMdd}", CodeNum = 4)
public class AMSAssetStorage extends BasePO implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 供应商ID
     */
    @DBField
    public int SupplierID = 0;

    /**
     * 供应商名称
     */
    public String SupplierName = "";

    /**
     * 来源枚举，例如购入，捐赠，盘盈等等
     */
    @DBField
    public int SourceID = 0;

    public AMSAssetStorage() {
        super();
    }

    @JsonProperty("SupplierID")
    public int getSupplierID() {
        return SupplierID;
    }

    public void setSupplierID(int supplierID) {
        SupplierID = supplierID;
    }

    @JsonProperty("SupplierName")
    public String getSupplierName() {
        return SupplierName;
    }

    public void setSupplierName(String supplierName) {
        SupplierName = supplierName;
    }

    @JsonProperty("SourceID")
    public int getSourceID() {
        return SourceID;
    }

    public void setSourceID(int sourceID) {
        SourceID = sourceID;
    }
}
